import request from '../request'
import type * as championTypes from './championTypes'

const getChampionList = (data: championTypes.getChampionListRequestType) => {
	return new Promise(async resolve => {
		const result = await request<
			championTypes.getChampionListRequestType,
			any
		>({
			url: '/opggApi/meta/champions',
			method: 'get',
			data,
		})
		resolve(result.data.data)
	})
}

export { getChampionList }
